package com.gitee.wsl.ext.number

infix fun Float.step(edge: Float) = _step(edge, this)

infix fun Double.step(edge: Double) = _step(edge, this)

internal fun _step(edge: Float, a: Float) = _mix(1f, 0f, a < edge)

internal fun _step(edge: Double, a: Double) = _mix(1.0, 0.0, a < edge)